﻿using Microsoft.EntityFrameworkCore;

namespace AreaMSSQL
{
   public class XGQ_DBContext:DbContext
    {
        public DbSet<XGQ_Area> Areas { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
            => optionsBuilder
                    //开发环境
//                .UseSqlServer(@"Data Source=10.6.73.164;Initial Catalog=XGQ;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=Jwell2016; Max Pool Size=4096; Min Pool Size=10");
                //测试环境
                .UseSqlServer(@"Data Source=42.51.41.247;Initial Catalog=JwellXGQ;Integrated Security=False;Persist Security Info=False;User ID=xgq;Password=123qweasd; Max Pool Size=4096; Min Pool Size=10");

    }
}
